No errors are returned. This routine returns the thread sequence
number for the thread identified by the thread object specified
in the thread argument. The result of calling this routine is
undefined if the thread argument does not specify a valid thread.